import 'package:base_plugin/base_plugin.dart';
import 'package:dio/dio.dart';

/// Data import
class HttpDataImportService {
  /*
   * 下载联系人导入模板
   */
  static Future<Response> downTemplateFile(String filePath) {
    return BaseConfig.httpBase.download('/api/contacts/excel', filePath, {});
  }

  static Future<Response> uploadExcelFile() {
    return BaseConfig.httpBase.get('/api/contacts/excel', {});
  }
}
